<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.qs.po.*"%>
<%@page import="com.qs.vo.*"%>
<%@page import="com.qs.service.RecordAssessService"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    
    QsRecAssessItem item = RecordAssessService.load(request, response, out);
    int personId = -1;
    int deptId = -1;
    String personName = "";
    String deptName = "";
    String description = "";
    String firstMonthScore = "";
    String lastMonthScore = "";
    String secondMonthScore = "";
    String totalScore = "";
    String firstMonth = "";
    String secondMonth = "";
    String lastMonth = "";
    
    if(item != null) {
    	QsRecAssess bean = item.getBean();
		Department dept = item.getDept();
		Person person = item.getPerson();
	    personId = person.getPersonId();
	    deptId = bean.getDeptId();
	    personName = person.getName();
	    deptName = dept.getPath();
	    description = bean.getDescription();
	    firstMonthScore = bean.getFirstMonthScore();
	    lastMonthScore = bean.getLastMonthScore();
	    secondMonthScore = bean.getSecondMonthScore();
	    totalScore = bean.getTotalScore();
	    firstMonth = bean.getFirstMonth() == null ? "" : bean.getFirstMonth();
	    secondMonth = bean.getSecondMonth() == null ? "" : bean.getSecondMonth();
	    lastMonth = bean.getLastMonth() == null ? "" : bean.getLastMonth();
    } 
%>
<html>
<head>
	<title>考核竞赛评比记录</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="<%=request.getContextPath() %>/css/table.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath() %>/css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/calendar.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/common.js"></script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<input type="hidden" name="itemId" value="<%=itemId%>">
	<input type="hidden" name="actionType">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>考核竞赛评比记录</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="18%">
					<col width="34%">
					<col width="13%">
					<col width="35%">
					<tr>
						<td class="field">
							队别
						</td>
						<td>
							<%=deptName %>
						</td>
						<td class="field">
							姓名
						</td>
						<td>
							<%=personName %>
						</td>
					</tr>
				</table>
				<table class="dataTable2">
					<col width="18%">
					<col width="12%">
					<col width="30%">
					<col width="40%">
					<tr>
						<td class="field" rowspan="3">
							月考核综合得分
						</td>
						<td class="field">
							月份
						</td>
						<td>
							<%=firstMonth %>月
						</td>
						<td>
							<%=firstMonthScore %>
						</td>	
					</tr>
					<tr>
						<td class="field">
							月份
						</td>
						<td>
							<%=secondMonth %>月
						</td>
						<td>
							<%= secondMonthScore %>
						</td>	
					</tr>
					<tr>
						<td class="field">
							月份
						</td>
						<td>
							<%=lastMonth %>月
						</td>
						<td>
							<%=lastMonthScore %>
						</td>	
					</tr>
					<tr>
						<td class="field">
							季度考核综合得分
						</td>
						<td colspan="3">
							<%=totalScore %>
						</td>
					</tr>
					<tr>
						<td class="field">
							备注
						</td>
						<td colspan="3" height="80px" valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=description %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.print();">打印</span>				
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>